package org.streets.eis.component.modal;

import org.apache.wicket.ajax.AjaxRequestTarget;
import org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow;
import org.streets.eis.component.grid.TableList;

public class RefreshTableListCallback implements ModalWindow.WindowClosedCallback{

	private static final long serialVersionUID = 1L;
	
	private TableList<?> tableList;
	
	public RefreshTableListCallback(TableList<?> tableList){
		this.tableList = tableList;
	}
	
	public void onClose(AjaxRequestTarget target) {
		
		tableList.ajaxRefresh();
		
	}

}
